function weixinShare() {
    var defaultData = {
        appId: 'wxa53d68910d74e151',
        img_url: 'http://wechatjh.fourjoy.net/message_img.jpg',
        img_width: '120',
        img_height: '120',
        callback: function (res) {
            //$('.mask-way').click();
        }
    };
    if(typeof shareData !== 'undefined'){
        $.extend(defaultData, shareData);
    }
    var onBridgeReady = function () {
        WeixinJSBridge.on('menu:share:appmessage', function (argv) {
            WeixinJSBridge.invoke('sendAppMessage', defaultData, function (res) {
                shareData.callback(res);
            });
        });
        WeixinJSBridge.on('menu:share:timeline', function (argv) {
            //var sharetimeData = timelineData || defaultData;
            WeixinJSBridge.invoke('shareTimeline', defaultData, function (res) {
                shareData.callback(res);
            });
        });
    }
    if (document.addEventListener) {
        document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false);
    } else if (document.attachEvent) {
        document.attachEvent('WeixinJSBridgeReady', onBridgeReady);
        document.attachEvent('onWeixinJSBridgeReady', onBridgeReady);
    }
}